package com.jackiechancinema.ssm.service.Inte;

import com.jackiechancinema.ssm.bo.CommoditBO;
import com.jackiechancinema.ssm.dto.CommoReDTO;
import com.jackiechancinema.ssm.dto.CommoditDetailDTO;
import com.jackiechancinema.ssm.entity.Commodit;
import com.jackiechancinema.ssm.entity.CommoditHead;
import com.jackiechancinema.ssm.entity.Order;
import com.jackiechancinema.ssm.vo.PageVo;
import com.jackiechancinema.ssm.vo.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface CommoditService {
    PageVo<Commodit> queryPage(int page, int limit);

    PageVo<CommoditDetailDTO> queryPageDetail(int page, int limit);

    R update(Commodit commodit);

    R save(Commodit commodit);

    R delete(int commoditId);

    PageVo<CommoReDTO> queryRecording(int page, int limit);

    PageVo<CommoditHead> checkHead(int page, int limit);

    R headAdd(CommoditHead commoditHead);

    R updateHead(CommoditHead commoditHead);

    R deleteHead(int commoditHeadId);

    PageVo<Commodit> page(CommoditBO commoditBO);

    R batchadd(MultipartFile file);

    void exportExcel(CommoditBO o, HttpServletResponse response);
}
